define(["jquery","bbcare"], function($,$bb){
	var defaults = {},config = {};
	
	/**
	 * 患者活跃趋势报表
	 */
	config.patientLine = function(data){
		var option = {
	            title: {
	                text: ""
	            },
	            textStyle: {
	                fontSize: "15px"
	            },
	            tooltip: {
	                trigger: 'axis'
	            },
	            legend: {
	                data:['','']
	            },
	            grid: {
	                top:'2%',
	                left: '1%',
	                right: '1%',
	                bottom: '8%',
	                containLabel: true
	            },
	            toolbox: {
	                feature: {
	                    saveAsImage: {}
	                }
	            },
	            xAxis: {
	                type: 'category',
	                boundaryGap: false,
	                data: [
	                    "4.09","4.10","4.11","4.12","4.13","5.14","4.15",
	                    "4.16","4.17","4.18","5.19","4.20",
	                    "4.21","4.22","4.23","5.24","4.25",
	                    "4.26","4.27","4.28","5.29","4.30",
	                    "5.01","5.02","5.30","5.04","5.05",
	                    "5.06","5.07","5.08"],
	                axisLine:{
	                    lineStyle:{
	                        color:"#94A3B5" 
	                    }  
	                },
	                axisLabel:{
	                    textStyle:{
	                       color:"#94A3B5" 
	                    }
	                }
	            },
	            yAxis: {
	                type: 'value',
	                min:0,
	                axisLine:{
	                    lineStyle:{
	                        color:"#94A3B5" 
	                    }  
	                },
	                axisLabel:{
	                    textStyle:{
	                       color:"#94A3B5" 
	                    }
	                }
	            },
	            series: [
	                {
	                    name:'人数',
	                    type:'line',
	                    stack: '总量',
	                    data:[0,0,0,0,0,0,0,0,0,0,
	                          0,0,0,0,0,0,0,0,0,0,
	                          0,0,0,0,0,0,0,0,0,0],
	                    color:"#f4511e"
	                }
	            ]
	        };
		return option;
	}
	
	/**
	 * 科室服务统计
	 */
	config.seviceLine = function(data){
		var option = {
	            title: {
	                text: ""
	            },
	            tooltip: {
	                trigger: 'axis'
	            },
	            legend: {
	                data:['','']
	            },
	            grid: {
	                left: '3%',
	                right: '5%',
	                bottom: '5%',
	                containLabel: true
	            },
	            toolbox: {
	                feature: {
	                    saveAsImage: {}
	                }
	            },
	            xAxis: {
	                type: 'category',
	                boundaryGap: false,
	                data: []
	            },
	            yAxis: {
	                type: 'value'
	            },
	            series: [
	                {
	                    name:'人数',
	                    type:'line',
	                    stack: '总量',
	                    data:[]
	                }
	            ]
	        };
		return option;
	}
	
	/**
	 * 宣教报表配置信息
	 */
	config.missionLine = function(data){
		var option = {
	            title: {
	                text: ""
	            },
	            tooltip: {
	                trigger: 'axis'
	            },
	            legend: {
	                data:['','']
	            },
	            grid: {
	                left: '3%',
	                right: '5%',
	                bottom: '12%',
	                containLabel: true
	            },
	            toolbox: {
	                feature: {
	                    saveAsImage: {}
	                }
	            },
	            xAxis: {
	                type: 'category',
	                boundaryGap: false,
	                data: []
	            },
	            yAxis: {
	                type: 'value'
	            },
	            series: [
	                {
	                    name:'次数',
	                    type:'line',
	                    stack: '总量',
	                    data:[]
	                }
	            ]
	        };
		return option;
	}
	
	config.monitorPie = function(){
		var option = {
	            tooltip: {
	                trigger: 'item',
	                formatter: "{a} <br/>{b}: {c} ({d}%)"
	            },
	            series: []
	        };
		return option;
	}
	
	config.monitorLine = function(){
		var option = {
	            title: {
	                text: ''
	            },
	            tooltip: {
	                trigger: 'axis'
	            },
	            legend: {
	                data:[]
	            },
	            grid: {
	                left: '3%',
	                right: '5%',
	                bottom: '8%',
	                containLabel: true
	            },
	            toolbox: {
	                feature: {
	                    saveAsImage: {}
	                }
	            },
	            xAxis: {
	                type: 'category',
	                boundaryGap: false,
	                data: []
	            },
	            yAxis: {
	                type: 'value',
	            },
	            series: []
	        };
		return option;
	}
	
	return config;
});
